'use strict';

const Service = require('egg').Service;

class UserListener extends Service {
  subscribe(events) {

    events.on('RegisterNewAccount', this.notifications, this);

  }

  async notifications(evt) {

    console.log(this);

    // await this.service.notifications.notify({
    //   message: evt.nickname,
    // });

  }

}

module.exports = UserListener;
